#include <iostream>

int main(){
    int a1,a2,n; std::cin >> a1 >> a2 >> n;
    int diff = a2 - a1;
    std::cout << a1 + diff * (n - 1);

    return 0;
}